import java.util.*;

public class TestVowelCount {

    public static void main(String[] args) {
        String phrase = new String("black banana republic boots");
        System.out.println(phrase);
        System.out.println(Arrays.toString(vowelCount(phrase)));
    }
    
    public static int[] vowelCount(String str) {
        int[] count = new int[5];
        for (int i = 0; i < str.length(); i++) {
            if (str.charAt(i) == 'a') {
                count[0] += 1;
            }
            else if (str.charAt(i) == 'e') {
                count[1] += 1;
            }
            else if (str.charAt(i) == 'i') {
                count[2] += 1;
            }
            else if (str.charAt(i) == 'o') {
                count[3] += 1;
            }
            else if (str.charAt(i) == 'u') {
                count[4] += 1;
            }
        }
        return count;
    }
}